<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5">
<head>
    <meta charset="UTF-8">
    <title>数据表格页面</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>

</head>
<body>
<div class="container-fluid">
    <!--导航栏-->
    <div class="row">
        <div class="col-md-6">
            <ul class="nav nav-pills">
                <li role="presentation" class="active"><a href="#">Home</a></li>
                <li role="presentation"><a href="#">Profile</a></li>
                <li role="presentation"><a href="#">Messages</a></li>
            </ul>
        </div>
        <div class="col-md-6" >
            <ul class="nav nav-pills" style="float: right">
                <li role="presentation" class="active"><a th:href="@{/tologin}">登录</a></li>
                <li role="presentation"><a th:href="@{/toregister}">注册</a></li>
            </ul>
        </div>
    </div>
    <div class="row">
        <table class="table table-hover">
            <thead>
            <tr class="success">
                <th><input type="checkbox"/></th>
                <th>学号</th>
                <th>姓名</th>
                <th>班级</th>
                <th>年龄</th>
                <th>电话</th>
            </tr>
            </thead>
            <tr th:each="table_item:${Admin}">
                <td><input type="checkbox" class="check"></td>
                <td th:text="${table_item.studentid}"></td>
                <td th:text="${table_item.studentname}"></td>
                <td th:text="${table_item.classes}"></td>
                <td th:text="${table_item.age}"></td>
                <td th:text="${table_item.num}"></td>
                <td>
                    <a  class="btn btn-default" th:href="@{/toinsert}" sec:authorize="hasAuthority('admin')">增加</a>
                    <a  class="btn btn-default" th:href="@{/delete/}+${table_item.studentid} "sec:authorize="hasAuthority('admin')">删除</a>
                </td>
            </tr>
        </table>
    </div>
    <div class="row">
        <div class="col-md-12">
            <nav aria-label="Page navigation">
                <ul class="pagination" style="float: right">
                    <li>
                        <a href="#" aria-label="Previous">
                            <span aria-hidden="true">&laquo;</span>
                        </a>
                    </li>
                    <li><a href="#">1</a></li>
                    <li><a href="#">2</a></li>
                    <li><a href="#">3</a></li>
                    <li><a href="#">4</a></li>
                    <li><a href="#">5</a></li>
                    <li>
                        <a href="#" aria-label="Next">
                            <span aria-hidden="true">&raquo;</span>
                        </a>
                    </li>
                </ul>
            </nav>
        </div>
    </div>
</div>
<script type="text/javascript">

</script>
</body>
</html>